package esms.cases;

import com.thoughtworks.selenium.DefaultSelenium;

import esms.action.ActionFactory;
import esms.action.ActionInterface;


public abstract class AbstractCase {
	public abstract DefaultSelenium getBrowser();
	private static ActionInterface closeBrowser;

	static {
		System.out.println("================initActions=============in abs");
		initActions();
	}
	
	protected void closeBrowser(){
		closeBrowser.execute(getBrowser());
	}
	
	private static void initActions() {
		closeBrowser = ActionFactory.getCloseBrowserAction();
	}
}
